<%@ page language="java" import="java.util.*,org.yoao.crm.bean.Session,org.yoao.crm.bean.StaticBean" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Session userSession = (Session)session.getAttribute("userSession");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
	<META http-equiv=Content-Type content="text/html; charset=UTF-8">
	<META content="MSHTML 6.00.3790.4696" name=GENERATOR>
	<LINK href="<%=basePath%>css/topstyle.css" type=text/css rel=stylesheet>
	<STYLE type=text/css>A {
		COLOR: #000000; TEXT-DECORATION: none
	}
	A:hover {
		COLOR: blue; TEXT-DECORATION: none
	}
	#homeIcon IMG {
		BORDER-RIGHT: 1px; BORDER-TOP: 1px; BORDER-LEFT: 1px; CURSOR: hand; MARGIN-RIGHT: 2px; BORDER-BOTTOM: 1px; align: absmiddle
	}
	</STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<TABLE class=mainpage_top id=table2 height=40 cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE id=table4 cellSpacing=5 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width="1%"><IMG src="<%=basePath%>images/logo.gif" align="center" border=0></TD>
          <TD style="FONT-SIZE: 15px; LINE-HEIGHT: 25px" align="center" vAlign="center">
          	<IMG src="<%=basePath%>images/title.gif" align=absMiddle border=0>
          </TD>
        </TR>
        </TBODY>
      </TABLE>
    </TD>
    <TD vAlign=top>
      <TABLE id=table3 cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD style="PADDING-RIGHT: 6px; PADDING-LEFT: 6px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px" align=right>
           <BR>
           		<LABEL id=welcome>欢迎您</LABEL>:<%=userSession.getNickName()%>(<%=userSession.getUserName()%>)&nbsp;&nbsp;
           		<LABEL id=welcome>角色</LABEL>:<%=userSession.getRoleName()%>(<%=userSession.getRoleId()%>)
          </TD>
        </TR>
        </TBODY>
      </TABLE>
    </TD>
  </TR>
  </TBODY>
 </TABLE>
<TABLE id=table5 cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD class=mainpage_bg>
      <TABLE id=table1 cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD></TD>
          <TD id="homeIcon" align="right" valign="top">
          		<IMG alt="修改密码" onClick="javascript:parent.frames.main.location.href='<%=basePath%>kmjsp/user/psswd_edit.jsp'" src="<%=basePath%>images/icon_key.gif">
            <%if(StaticBean.ROLE_ADMIN.equals(userSession.getRoleId())){%>
            	<IMG alt="系统配置" onClick="javascript:parent.frames.main.location.href='<%=basePath%>config.crm?method=init'" src="<%=basePath%>images/icon_settings.gif">
            <%}
              if(StaticBean.ROLE_HQ.equals(userSession.getRoleId()) || StaticBean.ROLE_ADMIN.equals(userSession.getRoleId())){%>
            	<IMG alt="菜单管理" onClick="javascript:parent.frames.main.location.href='<%=basePath%>kmjsp/app/menuConfig.jsp'" src="<%=basePath%>images/icon_monitor_pc.gif">
            <%}%>
            	<a href="<%=basePath%>login.crm?method=logout" target="_parent"><IMG alt="退出系统" src="<%=basePath%>images/action_stop.gif"></a>
  </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</BODY></HTML>